home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / files / copyfile < prev    next >
Encoding:
Text File  |  1993-10-26  |  846 b   |  20 lines  |  [TEXT/$Tcl]

  1.  
  2.  
  3.           copyfile ?-bytes num|-maxbytes num? fromFileId toFileId
  4.                Copies the rest of the file  specified  by  fromFileId,
  5.                starting  from its current position, to the file speci-
  6.                fied by toFileId, starting from its current position.
  7.  
  8.                If -bytes is specified, then Inum bytes are copied.  If
  9.                less   than  num  bytes  are  available,  an  error  is
  10.                returned.  If -maxbytes is specified, then  Inum  bytes
  11.                are  copied but no error is returned if less are avail-
  12.                able.
  13.  
  14.                The command returns  the  number  of  bytes  that  were
  15.                copied.
  16.  
  17.                The -bytes option is  particularly  useful  for  mixing
  18.                binary  data  in  with ASCII commands or data in a data
  19.                stream.
  20.